package com.ssy.lingxi.transaction.api.common;

/**
 * 订单常量
 *
 * @author wrc
 * @date 2020/7/7
 */
public class OrderConstant {

    /**
    * 流程类型：1.订单交易流程 2.售后换货流程 3.售后退货流程 4.售后维修流程
    * @author wrc
    * @date 2020/12/4
    */
    public interface  OrderWorkType{
        Integer ORDER_TYPE = 1;
        Integer AFTER_SALE_EXCHANGE_PROCESS = 2;
        Integer AFTER_SALES_RETURN_PROCESS = 3;
        Integer AFTER_SALES_MAINTENANCE_PROCESS = 4;
    }

    /**
     * 询价单查询类型：1.询价单查询 2. 待新增询价单查询 3.待审核询价单（(一级)） 4.待审核询价单（(二级)） 5.待提交询价单
     * @author wrc
     * @date 2020/7/31
     */
    public interface InquiryQueryType {
        int INQUIRY_ALL = 1;
        int INQUIRY_NOT_SUBMIT = 2;
        int INQUIRY_CHECK_ONE = 3;
        int INQUIRY_CHECK_TWO = 4;
        int INQUIRY_NOT_CONFIRM = 5;
        int PRODUCT_QUOTATION_TO_BE_SUBMITTED = 6;
    }

    /**
     * 报价单查询类型：1.报价单查询 2. 待新增报价单查询 3.待审核报价单（(一级)） 4.待审核报价单（(二级)） 5.待提交报价单
     * @author wrc
     * @date 2020/7/31
     */
    public interface QuoteQueryType {
        int QUOTE_ALL = 1;
        int QUOTE_NOT_SUBMIT = 2;
        int QUOTE_CHECK_ONE = 3;
        int QUOTE_CHECK_TWO = 4;
        int QUOTE_NOT_CONFIRM = 5;
        int PRODUCT_QUOTATION_TO_BE_SUBMITTED = 6;
    }

    /**
     * 确认报价单查询类型：1.报价单查询 2. 待提交审核报价单查询 3.待审核报价单（(一级)） 4.待审核报价单（(二级)） 5.待确认报价单
     * @author wrc
     * @date 2020/7/31
     */
    public interface ConfirmQuoteQueryType {
        int CONFIRM_QUOTE_ALL = 1;
        int CONFIRM_QUOTE_NOT_SUBMIT = 2;
        int CONFIRM_QUOTE_CHECK_ONE = 3;
        int CONFIRM_QUOTE_CHECK_TWO = 4;
        int CONFIRM_QUOTE_NOT_CONFIRM = 5;
        int PRODUCT_QUOTATION_TO_BE_SUBMITTED = 6;
    }

    /**
     * 商品类型: 1-会员商品; 2-渠道商品
     *
     * @author wrc
     * @date 2020/7/31
     */
    public interface CommodityType {
        int MEMBER_PRODUCT = 1;
        int CHANNEL_PRODUCT = 2;
    }

    /**
     * 是否所有会员共享
     *
     * @author wrc
     * @date 2020/7/8
     */
    public interface IsTacitlyApprove {
        int YES = 1;
        int NOT = 2;
    }

    /**
     * 订单服务状态：1.启用 0.停用
     *
     * @author wrc
     * @date 2020/7/9
     */
    public interface State {
        int STOP = 0;
        Integer START = 1;
    }

    /**
     * 物流单审核：0-不接受 1-接受  2-待确认
     * @author wrc
     * @date 2020/7/9
     */
    public interface LogisticsType {
        Integer NOT = 0;
        Integer YES = 1;
        Integer CONFIRM = 2;
    }

    /**
     * 任务类型，定义在TaskTypeEnum中。 0-普通任务 1-支付任务
     *
     * @author wrc
     * @date 2020/7/9
     */
    public interface TaskType {
        int ORDINARY = 0;
        int PAY = 1;
    }

    /**
     * 审核状态：
     *
     * @author wrc
     * @date 2020/7/9
     */
    public interface Auditing {
        int NOT_GO = 0;
        int PASS = 1;
        int DEFAULT = -1;
        int TWO = 2;
        int THREE = 3;
    }

    /**
     * 内部状态:1.待提交审核  2.待审核(一级)   3.待审核(二级)  6.审核不通过  7.审核通过 8.审核不通过
     *
     * @author wrc
     * @date 2020/7/22
     */
    public interface InteriorState {
        Integer PENDING_REVIEW = 1;
        Integer TO_AUDIT_ONE = 2;
        Integer TO_AUDIT_TWO = 3;
        Integer TO_AUDIT_THREE = 4;
        Integer FAILED_TO_PASS_THE_AUDIT = 5;
        Integer NOT_APPROVED_PRODUCT = 6;
        Integer PASS_THE_AUDIT = 7;
        Integer NOT_APPROVED = 8;
    }

    /**
     * 工作流审核状态:1.通过 0.不通过 -1.默认
     *
     * @author wrc
     * @date 2020/7/22
     */
    public interface InteriorStatus {
        int STATE_PASS = 1;
        int STATE_NOT_PASS = 0;
        int STATE_DEFAULT = -1;
    }

    /**
     * 报价单内部流转: 1.新增报价单 2.审核报价单 3.审核报价单 4.提交报价单 5.审核不通过
     *
     * @author wrc
     * @date 2020/7/30
     */
    public interface InternalStateOfQuotation {
        int NEW_QUOTATION = 1;
        int REVIEW_QUOTATION = 2;
        int REVIEW_QUOTATION_TWO = 3;
        int QUOTATION_SUBMISSION = 4;
        int NOT_APPROVED = 5;
    }

    /**
     * 配送方式
     *
     * @author wrc
     * @date 2020/8/26
     */
    public interface DeliveryType {
        //物流
        Integer LOGISTICS = 1;
        //自提
        Integer PICK_UP_ADDRESS = 2;
        //无配送
        Integer NO_DELIVERY = 3;
    }

    /**
     * 外部状态:1.提交需求单 2.审核需求单 3.提交报价单 4.确认报价单 5.审核通过 6.审核不通过 7.不接受报价 8.等待确认报价
     *
     * @author wrc
     * @date 2020/7/22
     */
    public interface ExternalState {
        int REQUISITION_TO_BE_SUBMITTED = 1;
        int AUDIT_REQUISITION = 2;
        int QUOTATION_SUBMISSION = 3;
        int CONFIRMATION_QUOTATION = 4;
        Integer PASS_THE_AUDIT = 5;
        int THE_REQUIREMENT_SHEET_IS_NOT_APPROVED = 6;
        int NO_OFFER_ACCEPTED = 7;
        int WAITING_FOR_CONFIRMATION_OFFER = 8;
    }

    /**
     * 订单内部支付状态
     */
    public interface PayState {
        //待确认电子合同
        Integer ELECTRONIC_CONTRACT_TO_BE_CONFIRMED = 5;

        //确认电子合同
        Integer CONFIRMATION_ELECTRONIC_CONTRACT = 8;

        //取消电子合同
        Integer CANCEL_ELECTRONIC_CONTRACT = 9;

        //支付成功
        Integer PAYMENT_SUCCESS = 10;

        //支付失败
        Integer PAYMENT_FAILED = 11;

        //确认收货
        Integer CONFIRM_RECEIPT = 12;

        //取消收货
        Integer CANCEL_RECEIVING = 13;

        //订单入库
        Integer ORDER_WAREHOUSING = 14;

        //订单归档
        Integer ORDER_FILING = 15;

        //支付确认
        Integer PAYMENT_CONFIRMATION = 16;

        //支付取消
        Integer PAYMENT_FILING = 17;

        //订单销售发货单创建
        Integer SALES_INVOICE_ORDER = 18;

        //新增物流单
        Integer NEW_LOGISTICS_ORDER = 19;

        //订单发货确认
        Integer ORDER_DELIVERY_CONFIRMATION = 20;

        //新增采购入库单
        Integer ADD_PURCHASE_STOCK_DOCUMENT = 21;

        //订单收货确认
        Integer ORDER_RECEIPT_CONFIRMATION = 22;

        //确认回单
        Integer CONFIRM_COME_ORDER = 23;

        //订单归档供应商
        Integer ORDER_FILING_SUPPLIER = 23;
    }

    /**
     *列表按钮类型
     */
    public interface ButtonType{
        int ALL=1;
        int UPDATE_QUERY=2;
        int QUERY=3;
        int REPORT_PRICE_QUERY=4;
        int COMMINT=5;
        int UPDATE_QUERY_ALL=6;
    }
}
